package com.itzhoun.annation;

import com.itzhoun.validator.CronValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author 周楠
 * @Date 2022/08/16/下午 10:56
 */
@Target({ElementType.METHOD,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {CronValidator.class,})
@Documented
public @interface CronValidate {

    String message() default "身份证号码输入不合法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
